--	Converts a numeric time into a date time table
function TimeToDateTime( time )

	/* Must be a number */
	if not time or type(time) != "number" then return false end
	
	/* Get the date time table */
	return os.date( "*t", time )
end

--	Convert a numeric time to a date time string
function TimeToDateTimeString( time )

	/* Must be a number */
	if not time or type(time) != "number" then return false end
	
	/* Return a date time string representation */
	return os.date( "%x %X", time )
end

--	Get a date time table for the current time
function CurrentDateTime()
	return TimeToDateTime( os.time() )
end

--	Get a date time string for the current time
function CurrentDateTimeString()
	return TimeToDateTimeString( os.time() )
end